/*
 * Copyright (c) 2021. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package cn.edu.ntu.yyl.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MapperDao {
    Integer AddNewArticleClassify(Integer articleid,Integer classifyid);
    Integer UpdateArticleClassify(Integer articleid,Integer classifyid);
    Integer DeleteArticleClassify(Integer articleid,Integer classifyid);

    Integer AddNewArticleTags(Integer articleid, List<Integer> tagIdList);
    Integer UpdateArticleTags(Integer articleid, List<Integer> tagIdList);
    Integer DeleteArticleTags(Integer articleid, List<Integer> tagIdList);

    Integer AddNewUserRole(Integer userid,Integer roleId);
    Integer UpdateUserRole(Integer userid,Integer roleId);
    Integer DeleteUserRole(Integer userid,Integer roleId);



}
